package com.shop.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;


@Data
@NoArgsConstructor
@AllArgsConstructor
public class Phone implements Serializable {
    private Integer id;
    private String name;
    private String imgUrl;
    private String mold;
    private Integer stock;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createDate;
}
